package com.example.xueshen.common.service;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.xueshen.common.entity.Teacher;

import java.util.List;

public interface TeacherService {
    List<Teacher> getAll();
    boolean toAdd(Teacher teacher);
    boolean update(Teacher teacher);
    Teacher getById(Integer tid);
    boolean deleteById(Integer tid);
    Page<Teacher> selectBy(Page<Teacher> page, QueryWrapper<Teacher> queryWrapper);

}
